.class public Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;
.super Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;
.source "AddPictureActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;
    }
.end annotation


# instance fields
.field private A:J

.field private B:J

.field private m:Les/cd;

.field private n:[Ljava/lang/String;

.field private o:J

.field private p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

.field private q:Landroid/widget/TextView;

.field private r:Landroid/view/View;

.field private s:Landroid/widget/TextView;

.field private t:Landroid/widget/TextView;

.field private u:Landroid/widget/TextView;

.field private v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

.field private w:Z

.field private x:Z

.field private y:Lcom/esfile/screen/recorder/media/b;

.field private z:Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;


# direct methods
.method public constructor <init>()V
    .locals 5

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;-><init>()V

    const/4 v0, 0x4

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "BGMRender"

    const/4 v2, 0x0

    aput-object v1, v0, v2

    const-string v1, "BackgroundRender"

    const/4 v3, 0x1

    aput-object v1, v0, v3

    const/4 v1, 0x2

    const-string v4, "CropRender"

    aput-object v4, v0, v1

    const/4 v1, 0x3

    const-string v4, "RotateRender"

    aput-object v4, v0, v1

    .line 2
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->n:[Ljava/lang/String;

    .line 3
    iput-boolean v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->w:Z

    .line 4
    iput-boolean v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->x:Z

    const-wide/16 v0, 0x0

    .line 5
    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->A:J

    .line 6
    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    return-void
.end method

.method private L()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    iget-wide v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->A:J

    invoke-static {v0, v1, v2}, Les/rd;->a(Les/cd;J)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    return-void
.end method

.method private M()Ljava/util/List;
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Les/cd$l;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->getAllSnippets()Ljava/util/List;

    move-result-object v1

    .line 3
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    .line 4
    new-instance v3, Les/cd$l;

    invoke-direct {v3}, Les/cd$l;-><init>()V

    .line 5
    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    iget-wide v5, v2, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->a:J

    invoke-virtual {v4, v5, v6, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->a(JLes/cd$l;)V

    .line 6
    iget-wide v4, v2, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->b:J

    invoke-direct {p0, v4, v5}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->c(J)J

    move-result-wide v4

    iput-wide v4, v3, Les/cd$l;->h:J

    .line 7
    iget-wide v4, v2, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->c:J

    invoke-direct {p0, v4, v5}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->c(J)J

    move-result-wide v4

    iput-wide v4, v3, Les/cd$l;->i:J

    .line 8
    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 9
    :cond_0
    sget-object v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/e;->a:Lcom/esfile/screen/recorder/videos/edit/activities/picture/e;

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    return-object v0
.end method

.method private N()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->z()Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;

    move-result-object v0

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/videos/edit/player/c$r;)V

    .line 3
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/d;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/d;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/a$i;)V

    .line 4
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->b()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Landroid/view/View;)V

    .line 5
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/f;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/f;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/a$h;)V

    return-void
.end method

.method private O()V
    .locals 5

    .line 1
    sget v0, Les/x4;->durec_picture_snippetbar_container:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setNeedOccupyChecker(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setCenterSnippetListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$b;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/b;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setCenterValueChangeListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$c;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$b;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setSlideListener(Lcom/esfile/screen/recorder/videos/edit/ui/b$f;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    .line 7
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Les/v4;->durec_edit_video_snippet_container_height:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 8
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Les/v4;->durec_edit_video_snippet_bg_height:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    .line 9
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    sget v4, Les/v4;->durec_edit_video_snippet_bg_frame_width:I

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    .line 10
    invoke-virtual {v0, v1, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a(III)V

    .line 11
    sget v0, Les/x4;->durec_picture_snippetbar_time:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->s:Landroid/widget/TextView;

    .line 12
    sget v0, Les/x4;->durec_picture_snippetbar_left_time:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->t:Landroid/widget/TextView;

    .line 13
    sget v0, Les/x4;->durec_picture_snippetbar_right_time:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->u:Landroid/widget/TextView;

    .line 14
    sget v0, Les/x4;->durec_picture_add:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->q:Landroid/widget/TextView;

    .line 15
    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 16
    sget v0, Les/x4;->durec_picture_preview:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->r:Landroid/view/View;

    .line 17
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 18
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$c;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)V

    invoke-direct {v0, p0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;-><init>(Landroid/content/Context;Lcom/esfile/screen/recorder/videos/edit/activities/picture/l$c;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    return-void
.end method

.method private P()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->G()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->a(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    const-wide/16 v1, 0x3e8

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->c(J)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->K()V

    goto :goto_0

    .line 5
    :cond_0
    sget v0, Les/z4;->durec_subtitle_duration_limit_prompt:I

    invoke-static {v0}, Les/ec;->a(I)V

    .line 6
    :goto_0
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/k;->c()V

    return-void
.end method

.method private Q()V
    .locals 6

    .line 1
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object v1

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->M()Ljava/util/List;

    move-result-object v0

    .line 3
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_1

    .line 4
    iget-object v2, v1, Les/cd;->l:Les/cd$k;

    if-nez v2, :cond_0

    .line 5
    new-instance v2, Les/cd$k;

    invoke-direct {v2}, Les/cd$k;-><init>()V

    iput-object v2, v1, Les/cd;->l:Les/cd$k;

    .line 6
    :cond_0
    iget-object v2, v1, Les/cd;->l:Les/cd$k;

    iput-object v0, v2, Les/cd$k;->a:Ljava/util/List;

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    .line 7
    iput-object v0, v1, Les/cd;->l:Les/cd$k;

    .line 8
    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->n:[Ljava/lang/String;

    array-length v2, v0

    add-int/lit8 v2, v2, 0x1

    invoke-static {v0, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

    move-result-object v0

    move-object v2, v0

    check-cast v2, [Ljava/lang/String;

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->n:[Ljava/lang/String;

    array-length v0, v0

    const-string v3, "PictureRender"

    aput-object v3, v2, v0

    const/4 v3, 0x1

    const/16 v5, 0xe

    const-string v4, "addPicture"

    move-object v0, p0

    .line 10
    invoke-static/range {v0 .. v5}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditPreviewActivity;->a(Landroid/app/Activity;Les/cd;[Ljava/lang/String;ILjava/lang/String;I)V

    return-void
.end method

.method private R()V
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->M()Ljava/util/List;

    move-result-object v0

    .line 2
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_1

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    iget-object v2, v1, Les/cd;->l:Les/cd$k;

    if-nez v2, :cond_0

    .line 4
    new-instance v2, Les/cd$k;

    invoke-direct {v2}, Les/cd$k;-><init>()V

    iput-object v2, v1, Les/cd;->l:Les/cd$k;

    .line 5
    :cond_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->l:Les/cd$k;

    iput-object v0, v1, Les/cd$k;->a:Ljava/util/List;

    goto :goto_0

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    const/4 v1, 0x0

    iput-object v1, v0, Les/cd;->l:Les/cd$k;

    .line 7
    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    invoke-static {v0}, Les/dd;->a(Les/cd;)V

    .line 8
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method private S()V
    .locals 12

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->l:Les/cd$k;

    iget-object v0, v0, Les/cd$k;->a:Ljava/util/List;

    if-eqz v0, :cond_9

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->l:Les/cd$k;

    iget-object v1, v1, Les/cd$k;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_8

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/cd$l;

    .line 4
    iget-wide v3, v2, Les/cd$l;->h:J

    const/4 v5, 0x0

    invoke-direct {p0, v3, v4, v5}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->a(JZ)J

    move-result-wide v3

    .line 5
    iget-wide v6, v2, Les/cd$l;->i:J

    invoke-direct {p0, v6, v7, v5}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->a(JZ)J

    move-result-wide v5

    .line 6
    iget-wide v7, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    cmp-long v9, v3, v7

    if-gtz v9, :cond_7

    const-wide/16 v7, 0x0

    cmp-long v9, v5, v7

    if-gtz v9, :cond_0

    goto :goto_2

    :cond_0
    cmp-long v9, v3, v7

    if-gez v9, :cond_1

    move-wide v3, v7

    .line 7
    :cond_1
    iget-wide v7, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    cmp-long v9, v5, v7

    if-lez v9, :cond_2

    move-wide v5, v7

    :cond_2
    sub-long v7, v5, v3

    const-wide/16 v9, 0x3e8

    cmp-long v11, v7, v9

    if-ltz v11, :cond_6

    cmp-long v11, v7, v9

    if-gez v11, :cond_3

    goto :goto_1

    .line 8
    :cond_3
    iget-object v9, v2, Les/cd$l;->g:Ljava/lang/String;

    if-nez v9, :cond_4

    .line 9
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 10
    :cond_4
    iget-object v9, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {v9, v3, v4, v7, v8}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b(JJ)Z

    move-result v9

    if-eqz v9, :cond_5

    .line 11
    iget-object v9, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {v9, v3, v4, v7, v8}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a(JJ)J

    move-result-wide v7

    iput-wide v7, v2, Les/cd$l;->a:J

    .line 12
    invoke-direct {p0, v3, v4}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->c(J)J

    move-result-wide v3

    iput-wide v3, v2, Les/cd$l;->h:J

    .line 13
    invoke-direct {p0, v5, v6}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->c(J)J

    move-result-wide v3

    iput-wide v3, v2, Les/cd$l;->i:J

    .line 14
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    invoke-virtual {v3, v2}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->a(Les/cd$l;)V

    goto :goto_0

    .line 15
    :cond_5
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 16
    :cond_6
    :goto_1
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 17
    :cond_7
    :goto_2
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 18
    :cond_8
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->l:Les/cd$k;

    iget-object v1, v1, Les/cd$k;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->removeAll(Ljava/util/Collection;)Z

    :cond_9
    return-void
.end method

.method static synthetic a(Les/cd$l;Les/cd$l;)I
    .locals 2

    .line 14
    iget-wide v0, p0, Les/cd$l;->h:J

    iget-wide p0, p1, Les/cd$l;->h:J

    sub-long/2addr v0, p0

    const-wide/16 p0, 0x1

    invoke-static {v0, v1, p0, p1}, Ljava/lang/Math;->min(JJ)J

    move-result-wide p0

    const-wide/16 v0, -0x1

    invoke-static {p0, p1, v0, v1}, Ljava/lang/Math;->max(JJ)J

    move-result-wide p0

    long-to-int p1, p0

    return p1
.end method

.method private a(JZ)J
    .locals 2

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    if-nez v0, :cond_0

    return-wide p1

    .line 20
    :cond_0
    invoke-static {v0, p1, p2}, Les/rd;->b(Les/cd;J)J

    move-result-wide p1

    if-eqz p3, :cond_2

    const-wide/16 v0, 0x0

    cmp-long p3, p1, v0

    if-gez p3, :cond_1

    move-wide p1, v0

    .line 21
    :cond_1
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    cmp-long p3, p1, v0

    if-lez p3, :cond_2

    move-wide p1, v0

    :cond_2
    return-wide p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;J)J
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->c(J)J

    move-result-wide p0

    return-wide p0
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2

    .line 15
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "extra_video_path"

    .line 16
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 p1, 0x14000000

    .line 17
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 18
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->w:Z

    return p0
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    return-object p0
.end method

.method private c(J)J
    .locals 1

    .line 16
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    if-nez v0, :cond_0

    return-wide p1

    .line 17
    :cond_0
    invoke-static {v0, p1, p2}, Les/rd;->c(Les/cd;J)J

    move-result-wide p1

    return-wide p1
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->t:Landroid/widget/TextView;

    return-object p0
.end method

.method private c(Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 12
    new-instance v0, Lcom/esfile/screen/recorder/media/b;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/media/b;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->y:Lcom/esfile/screen/recorder/media/b;

    .line 13
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Les/v4;->durec_video_edit_snippet_min_side_max_width:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v0

    .line 14
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->y:Lcom/esfile/screen/recorder/media/b;

    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/media/b;->b(I)V

    .line 15
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->y:Lcom/esfile/screen/recorder/media/b;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/media/b;->a(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    return-wide v0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)Landroid/widget/TextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->u:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    return-object p0
.end method

.method static synthetic g(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)Lcom/esfile/screen/recorder/media/b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->y:Lcom/esfile/screen/recorder/media/b;

    return-object p0
.end method

.method static synthetic h(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->z:Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;

    return-object p0
.end method


# virtual methods
.method protected C()Z
    .locals 11

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    const/4 v1, 0x0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    if-nez v0, :cond_0

    goto/16 :goto_1

    .line 2
    :cond_0
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->getAllSnippets()Ljava/util/List;

    move-result-object v0

    .line 3
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    iget-object v2, v2, Les/cd;->l:Les/cd$k;

    const/4 v3, 0x1

    const-string v4, "AddPic"

    if-eqz v2, :cond_5

    .line 4
    iget-object v5, v2, Les/cd$k;->a:Ljava/util/List;

    if-eqz v5, :cond_5

    .line 5
    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v6

    const-string v7, "new:"

    const-string v8, "ori:"

    const-string v9, "\n"

    if-eq v5, v6, :cond_2

    .line 6
    sget-boolean v1, Les/u6;->b:Z

    if-eqz v1, :cond_1

    const-string v1, "picture size different\n"

    .line 7
    invoke-static {v4, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, v2, Les/cd$k;->a:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v4, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    return v3

    .line 10
    :cond_2
    iget-object v0, v2, Les/cd$k;->a:Ljava/util/List;

    .line 11
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->M()Ljava/util/List;

    move-result-object v2

    const/4 v5, 0x0

    .line 12
    :goto_0
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v6

    if-ge v5, v6, :cond_6

    .line 13
    invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Les/cd$l;

    invoke-interface {v2, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    invoke-virtual {v6, v10}, Les/cd$l;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_4

    .line 14
    sget-boolean v1, Les/u6;->b:Z

    if-eqz v1, :cond_3

    const-string v1, "picture content different\n"

    .line 15
    invoke-static {v4, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 16
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/cd$l;

    invoke-virtual {v0}, Les/cd$l;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 17
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v2, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/cd$l;

    invoke-virtual {v1}, Les/cd$l;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    return v3

    :cond_4
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    .line 18
    :cond_5
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_6

    const-string v0, "add picture different\n"

    .line 19
    invoke-static {v4, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return v3

    :cond_6
    :goto_1
    return v1
.end method

.method protected F()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->R()V

    return-void
.end method

.method public synthetic I()V
    .locals 5

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->w:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->w:Z

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->getCenterSnippets()Ljava/util/List;

    move-result-object v0

    .line 4
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    .line 5
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    iget-wide v3, v1, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->a:J

    invoke-virtual {v2, v3, v4}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->d(J)V

    goto :goto_0

    :cond_0
    return-void
.end method

.method public J()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->z:Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Landroid/os/HandlerThread;

    const-string v1, "PictureImageGetHandler"

    invoke-direct {v0, v1}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V

    .line 4
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;

    invoke-virtual {v0}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;Landroid/os/Looper;)V

    iput-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->z:Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    iget-wide v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setDuration(J)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$d;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$d;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setDecoration(Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$a;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a()V

    :cond_0
    return-void
.end method

.method public K()V
    .locals 3

    .line 1
    invoke-static {}, Lcom/esfile/screen/recorder/picture/picker/v;->a()Lcom/esfile/screen/recorder/picture/picker/v$a;

    move-result-object v0

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/v$a;->a(Z)Lcom/esfile/screen/recorder/picture/picker/v$a;

    const/4 v2, 0x2

    .line 3
    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/picture/picker/v$a;->a(I)Lcom/esfile/screen/recorder/picture/picker/v$a;

    const/4 v2, 0x1

    .line 4
    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/picture/picker/v$a;->b(I)Lcom/esfile/screen/recorder/picture/picker/v$a;

    .line 5
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/v$a;->c(Z)Lcom/esfile/screen/recorder/picture/picker/v$a;

    .line 6
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/v$a;->b(Z)Lcom/esfile/screen/recorder/picture/picker/v$a;

    const/16 v1, 0x100

    .line 7
    invoke-virtual {v0, p0, v1}, Lcom/esfile/screen/recorder/picture/picker/v$a;->a(Landroid/app/Activity;I)V

    return-void
.end method

.method public synthetic a(II)V
    .locals 3

    int-to-long p1, p1

    const/4 v0, 0x1

    .line 9
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->a(JZ)J

    move-result-wide p1

    iput-wide p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->o:J

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->s:Landroid/widget/TextView;

    iget-wide v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    invoke-static {p1, p2, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;->a(JJ)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 11
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->o:J

    invoke-virtual {p1, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->setSnippetSeekBarCenterValue(J)V

    return-void
.end method

.method public synthetic a(J)V
    .locals 3

    .line 4
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->c(J)J

    move-result-wide v0

    .line 5
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->G()V

    long-to-int v1, v0

    .line 6
    invoke-virtual {p0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->f(I)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->s:Landroid/widget/TextView;

    iget-wide v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    invoke-static {p1, p2, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/ui/RangeSeekBarContainer;->a(JJ)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->a(Z)V

    return-void
.end method

.method protected a(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->n:[Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a([Ljava/lang/String;)V

    return-void
.end method

.method public synthetic a(ZII)V
    .locals 0

    if-eqz p1, :cond_0

    .line 12
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->a(Z)V

    goto :goto_0

    .line 13
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->a(Z)V

    :goto_0
    return-void
.end method

.method public b(J)V
    .locals 16

    move-object/from16 v8, p0

    .line 6
    new-instance v9, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;

    invoke-direct {v9, v8}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;-><init>(Landroid/content/Context;)V

    .line 7
    iget-object v0, v8, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    move-wide/from16 v10, p1

    invoke-virtual {v0, v10, v11}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->b(J)Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 8
    :cond_0
    iget-wide v1, v0, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->b:J

    const-wide/16 v3, 0x64

    div-long/2addr v1, v3

    mul-long v12, v1, v3

    .line 9
    iget-wide v0, v0, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->c:J

    div-long/2addr v0, v3

    mul-long v14, v0, v3

    const-wide/16 v1, 0x0

    .line 10
    iget-wide v3, v8, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    move-object v0, v9

    move-wide v5, v12

    invoke-virtual/range {v0 .. v6}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->b(JJJ)V

    .line 11
    iget-wide v3, v8, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->B:J

    move-wide v5, v14

    invoke-virtual/range {v0 .. v6}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a(JJJ)V

    .line 12
    new-instance v6, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$e;

    move-object v0, v6

    move-object/from16 v1, p0

    move-wide v2, v12

    move-wide v4, v14

    move-object v12, v6

    move-wide/from16 v6, p1

    invoke-direct/range {v0 .. v7}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$e;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;JJJ)V

    invoke-virtual {v9, v12}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a(Lcom/esfile/screen/recorder/videos/edit/activities/picture/j$a;)V

    .line 13
    invoke-virtual {v9}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/j;->a()V

    return-void
.end method

.method protected b(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 1

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->a(Z)V

    return-void
.end method

.method protected b(Ljava/lang/String;)Z
    .locals 0

    .line 2
    :try_start_0
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->c(Ljava/lang/String;)V

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->y:Lcom/esfile/screen/recorder/media/b;

    if-eqz p1, :cond_0

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->y:Lcom/esfile/screen/recorder/media/b;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/b;->d()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    const/4 p1, 0x1

    return p1

    :catch_0
    const/4 p1, 0x0

    return p1
.end method

.method protected c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V
    .locals 2

    .line 2
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->c(Lcom/esfile/screen/recorder/videos/edit/player/VideoEditPlayer;)V

    .line 3
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->getDuration()I

    move-result p1

    int-to-long v0, p1

    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->A:J

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->L()V

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->y:Lcom/esfile/screen/recorder/media/b;

    if-eqz p1, :cond_0

    .line 6
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/b;->e()Z

    .line 7
    :cond_0
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->x:Z

    if-eqz p1, :cond_1

    .line 8
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->J()V

    .line 9
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->S()V

    const/4 p1, 0x0

    .line 10
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->x:Z

    .line 11
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->c()V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 2

    const/4 v0, -0x1

    const/4 v1, 0x1

    if-ne p1, v1, :cond_0

    if-ne p2, v0, :cond_1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->R()V

    goto :goto_0

    :cond_0
    const/16 v1, 0x100

    if-ne p1, v1, :cond_1

    if-ne p2, v0, :cond_1

    if-eqz p3, :cond_1

    const-string p1, "SELECTED_MEDIAS"

    .line 2
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 3
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p2

    if-lez p2, :cond_1

    const/4 p2, 0x0

    .line 4
    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/esfile/screen/recorder/picture/picker/data/c;

    .line 5
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->c()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p2

    if-nez p2, :cond_1

    .line 6
    iget-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    const-wide/16 v0, 0x7d0

    invoke-virtual {p2, v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->a(J)J

    move-result-wide p2

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/picker/entity/MediaItem;->c()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p2, p3, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->a(JLjava/lang/String;)V

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    invoke-virtual {p1, p2, p3}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->d(J)V

    .line 9
    invoke-static {}, Lcom/esfile/screen/recorder/videos/edit/k;->j()V

    :cond_1
    :goto_0
    return-void
.end method

.method public onBackPressed()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onBackPressed()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->q:Landroid/widget/TextView;

    if-ne p1, v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->P()V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->r:Landroid/view/View;

    if-ne p1, v0, :cond_1

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->Q()V

    :cond_1
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-eqz p1, :cond_0

    return-void

    .line 3
    :cond_0
    sget p1, Les/y4;->durec_video_edit_add_picture_layout:I

    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->h(I)V

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->O()V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->N()V

    .line 6
    invoke-static {}, Les/dd;->a()Les/cd;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->m:Les/cd;

    .line 7
    iget-object v0, p1, Les/cd;->l:Les/cd$k;

    if-nez v0, :cond_1

    .line 8
    new-instance v0, Les/cd$k;

    invoke-direct {v0}, Les/cd$k;-><init>()V

    iput-object v0, p1, Les/cd;->l:Les/cd$k;

    :cond_1
    const/4 p1, 0x0

    .line 9
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->f(Z)V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->y:Lcom/esfile/screen/recorder/media/b;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/b;->c()V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->z:Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {v0}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Looper;->quitSafely()V

    .line 6
    :cond_1
    invoke-static {}, Les/ua;->d()Les/ua;

    move-result-object v0

    invoke-virtual {v0}, Les/ua;->a()V

    return-void
.end method

.method protected onPause()V
    .locals 5

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditWithPlayerActivity;->onPause()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->y:Lcom/esfile/screen/recorder/media/b;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/b;->d()V

    :cond_0
    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->w:Z

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    if-eqz v0, :cond_1

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->p:Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetSeekBarContainer;->getCenterSnippets()Ljava/util/List;

    move-result-object v0

    .line 7
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;

    .line 8
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->v:Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;

    iget-wide v3, v1, Lcom/esfile/screen/recorder/videos/edit/ui/b$g;->a:J

    invoke-virtual {v2, v3, v4}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/l;->b(J)V

    goto :goto_0

    :cond_1
    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "\u6dfb\u52a0\u56fe\u7247\u9875\u9762"

    return-object v0
.end method

.method protected x()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_common_ok:I

    return v0
.end method

.method protected y()I
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_add_image:I

    return v0
.end method
